<div class="zs-body" data-ng-init="formInit('gzclsq', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzclsq');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">车辆使用</a>
        </div>
        <div class="option">
        	<input type="button" class="zs-btn orange" value="归还车辆" 
                ng-click="yjghcl('gzclsq', gzclsq.sRows[0]);"/>
            <!--科员非办公室科员-->
            <input type="button" class="zs-btn orange" value="申请" ng-show="mi.sa || mi.gdzc_clgl_clsy_ky"
                ng-click="startNewBpm('clsqsy.html','clsysq','gzclsq')"/>
            
            <!--科长、办公室科员申请用车-->
            <input type="button" class="zs-btn orange" value="申请" ng-show="mi.sa || mi.gdzc_clgl_clsy_kzbgsky"
                ng-click="startNewBpm('clsqsy.html','clsysq_kjgb','gzclsq')"/>
                
            <!--办公室主任申请用车-->
            <input type="button" class="zs-btn orange" value="申请" ng-show="mi.sa || mi.gdzc_clgl_clsy_bgszr"
                ng-click="startNewBpm('clsqsy.html','clsysq_zrjbgb','gzclsq')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请人" ng-model="gzclsq.queryObject['ssqr:like']"/>
                </span>
                <span class="search-warpper" style="width: 65px;">申请时间
                 </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_dsqsj'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzclsq.queryObject['dsqsj:>=']" >
				   	</ag-Datebox>
               </span>-
               <span class="search-warpper">
                    <ag-Datebox id='qi_dsqsj'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gzclsq.queryObject['dsqsj:<=']" >
				   	</ag-Datebox>
                </span>
            	
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="loadData('gzclsq')"/>
 
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzclsq','allCheckbox');" />
                                    </th>
								<!--	<th>唯一编号</th>-->
									<th>部门</th>
									<!--<th>车辆类型</th>
									<th>车牌号</th>-->
									<th>申请人</th>
									<th>申请时间</th>
									<th>申请原因</th>
									<th>联系方式</th>
									<th>开始时间</th>
									<th>结束时间</th>
									<!--<th>状态</th>-->
									<th>签批状态</th>
									<!--<th>是否同意申请</th>
									<th>车辆信息(与车辆档案挂接)</th>-->
									<!--<th>备注</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzclsq.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzclsq',r);"
                                            ng-model="r.selected" />
                                    </td>
									<td>
                                        <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.ycbmName"></label>
                                        </a>
                                   </td>
                                   <!--<td>
                                   	
                                   </td>
                                   <td>
                                       
                                   </td>-->
									<!--  申请人 -->
            						<td>
                                        <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.ssqr"></label>
                                        </a>
                                   </td>
									<!--  申请时间 -->
								   <td>
                                         <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  申请原因 -->
            						<td>
                                         <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.ssqyy"></label>
                                        </a>
                                   </td>
									<!--  联系方式 -->
            						<td>
                                        <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.slxfs"></label>
                                        </a>
                                   </td>
									<!--  借用时间 -->
								   <td>
                                        <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.djysj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  归还时间 -->
								   <td>
                                       <a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.dghsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
                                   
                                   <!--<td>
                                   		<a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.clztName"></label>
                                        </a>
                                   	</td>-->
                                   	
                                   	<td>
                                   		<a ng-click="toQueryWork('clsqsy.html',r.bpmkey,'gzclsq','gzclsq',r.id);">
                                            <label ng-bind="r.spztName"></label>
                                        </a>
                                   	</td>
									<!--  是否同意申请 -->
            						<!--<td>
                                        <a ng-click="editRow('gzclsq',r) && openWindow('edit');">
                                            <label ng-bind="r.itysq"></label>
                                        </a>
                                   </td>-->
									<!--  车辆信息(与车辆档案挂接) -->
            						<!--<td>
                                        <a ng-click="editRow('gzclsq',r) && openWindow('edit');">
                                            <label ng-bind="r.sclxx"></label>
                                        </a>
                                   </td>-->
									
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzclsq'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="车辆使用编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">唯一编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.id" class="zs-input" />
                                </td>
                            </tr>-->
          					<tr>
                                <td class="text" width="20%">申请人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.ssqr" class="zs-input" />
                                </td>
          
                                <td class="text" width="20%">申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzclsq.editRow.dsqsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">申请原因</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.ssqyy" class="zs-input" />
                                </td>
                           
                                <td class="text" width="20%">联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.slxfs" class="zs-input" />
                                </td>
                            </tr>
						   <tr>
                                <td class="text" width="20%">借用时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_djysj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzclsq.editRow.djysj" >
							   		</ag-Datebox>
                                </td>
                            
                                <td class="text" width="20%">归还时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dghsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzclsq.editRow.dghsj" >
							   		</ag-Datebox>
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">是否同意申请</td>
                                <td class="left" width="30%">
                                	<ag-Combobox style="width:175px;height:28px;"
                                        para="{	uDictionary:true,
                                        		dictionary:'p_yesorno'}"
                                        ng-model="gzclsq.editRow.itysq"
                                        text-Value="gzclsq.editRow.itysqName" />
                                	<!--<input type="text" ng-model="gzclsq.editRow.itysq" class="zs-input" />-->
                                </td>
                          
                                <td class="text" width="20%">车辆信息(与车辆档案挂接)</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzclsq.editRow.sclxx" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">备注</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzclsq.editRow.sbz" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzclsq', gzclsq.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>